<?php if(Yii::app()->user->hasFlash('loginMessage')): ?>

<div class="success">
	<?php echo Yii::app()->user->getFlash('loginMessage'); ?>
</div>

<?php endif; ?>
<div class="row row-input-login">
	<div class="col-md-12">
    	<div class="panel panel-default">
			<div class="panel-heading">
			    <h3 class="panel-title"><span>Đăng nhập</span></h3>
			</div>
			<div class="panel-body">
			   <?php echo CHtml::beginForm('', 'post', array('id'=>'login-form')); ?>
			   	<div class=""><?php echo CHtml::errorSummary($model,"",""); ?></div>
                 <fieldset>
			    	<div class="form-group">
						<?php echo CHtml::activeTextField($model,'username', array('id'=>'login-username', 'class'=>'form-control', 'placeholder'=>'Tên đăng nhập')); ?>
			    	</div>
			    	<div class="form-group">
			    		<?php echo CHtml::activePasswordField($model,'password', array('id'=>'login-password','class'=>'form-control', 'placeholder'=>'Mật khẩu')) ?>
			    	</div>
			    	<div class="checkbox">
			    	    <label>
			    	    	<?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>
							<?php echo CHtml::activeLabelEx($model,'rememberMe',array('class'=>'remember-me')); ?>
			    	    </label>
			    	</div>
			    	<?php echo CHtml::submitButton(UserModule::t("Đăng nhập"), array('class'=>'btn btn-lg btn-success btn-block')); ?>
			     </fieldset>
			   <?php echo CHtml::endForm(); ?>
			</div>
		</div>
	</div>
</div>